(global.webpackJsonp = global.webpackJsonp || []).push([ [ "annex/order/orderList" ], {
    "0b0c": function(e, t, r) {
        r.r(t);
        var n = r("f679"), i = r("a9bc");
        for (var o in i) "default" !== o && function(e) {
            r.d(t, e, function() {
                return i[e];
            });
        }(o);
        r("d8ae");
        var a = r("f0c5"), c = Object(a.a)(i.default, n.b, n.c, !1, null, "0ea6ed32", null, !1, n.a, void 0);
        t.default = c.exports;
    },
    3098: function(e, t, r) {
        (function(e) {
            r("1067"), n(r("66fd"));
            var t = n(r("0b0c"));
            function n(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = r, e(t.default);
        }).call(this, r("543d").createPage);
    },
    "31b2": function(e, t, r) {},
    "8afb": function(e, t, r) {
        (function(e) {
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0;
            var n = r("a71e"), i = r("26cb"), o = r("c2bf"), a = (r("db8f"), r("8434")), c = (function(e) {
                e && e.__esModule;
            }(r("03b8")), r("b806")), u = r("4771");
            function s(e) {
                return function(e) {
                    if (Array.isArray(e)) return f(e);
                }(e) || function(e) {
                    if ("undefined" != typeof Symbol && Symbol.iterator in Object(e)) return Array.from(e);
                }(e) || function(e, t) {
                    if (e) {
                        if ("string" == typeof e) return f(e, t);
                        var r = Object.prototype.toString.call(e).slice(8, -1);
                        return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? f(e, t) : void 0;
                    }
                }(e) || function() {
                    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
                }();
            }
            function f(e, t) {
                (null == t || t > e.length) && (t = e.length);
                for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
                return n;
            }
            function d(e, t) {
                var r = Object.keys(e);
                if (Object.getOwnPropertySymbols) {
                    var n = Object.getOwnPropertySymbols(e);
                    t && (n = n.filter(function(t) {
                        return Object.getOwnPropertyDescriptor(e, t).enumerable;
                    })), r.push.apply(r, n);
                }
                return r;
            }
            function l(e, t, r) {
                return t in e ? Object.defineProperty(e, t, {
                    value: r,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : e[t] = r, e;
            }
            var p = {
                computed: function(e) {
                    for (var t = 1; t < arguments.length; t++) {
                        var r = null != arguments[t] ? arguments[t] : {};
                        t % 2 ? d(Object(r), !0).forEach(function(t) {
                            l(e, t, r[t]);
                        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : d(Object(r)).forEach(function(t) {
                            Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
                        });
                    }
                    return e;
                }({}, (0, i.mapGetters)([ "configs", "user", "mainColor", "iphoneXStyle", "isIphone", "priceColor" ])),
                data: function() {
                    return {
                        cur: 0,
                        dataNavs: [ {
                            id: "-1",
                            name: "全部"
                        }, {
                            id: "1",
                            name: "待付款"
                        }, {
                            id: "2",
                            name: "已付款"
                        } ],
                        isRequest: !1,
                        loadingOk: !0,
                        orderList: [],
                        page: 1,
                        pageSize: 10,
                        type_id: "",
                        user_id: "",
                        isBar: ""
                    };
                },
                created: function() {},
                onShow: function() {
                    var e = this;
                    (0, c.init)(this).then(function(t) {
                        e.isBar = t;
                    }), (0, u.getStorageSync)("userInfo").then(function(t) {
                        var r = JSON.parse(t.data);
                        (0, n.isEmpty)(r.id) || (e.user_id = r.id), e.getOrderList();
                    }, function(t) {
                        e.getOrderList();
                    });
                },
                onLoad: function(e) {
                    var t = this;
                    switch (t.type_id = (0, n.isEmpty)(e.id) ? -1 : e.id, e.id) {
                      case "-1":
                        t.cur = 0;
                        break;

                      case "1":
                        t.cur = 1;
                        break;

                      case "2":
                        t.cur = 2;
                    }
                },
                methods: {
                    navToOrderList: function(e) {
                        (0, a.route)({
                            url: "/annex/order/orderDetail",
                            type: 1,
                            data: {
                                id: e.id,
                                price_type: e.price_type
                            }
                        });
                    },
                    tab: function(e, t) {
                        if (this.cur == t) return !1;
                        this.cur = t, this.type_id = e.id, this.page = 1, this.orderList = [], this.getOrderList();
                    },
                    getOrderList: function() {
                        var t = this, r = this;
                        this.loadingOk = !1, this.isRequest = !1;
                        var n = {
                            page: this.page,
                            pagesize: this.pageSize,
                            type: this.type_id,
                            user_id: this.user_id
                        };
                        (0, o.myAnnexOrder)(n).then(function(n) {
                            var i = r.orderList, o = n.list;
                            i && 1 != r.page && (o = [].concat(s(i), s(o))), r.orderList = o, t.loadingOk = !0, 
                            t.isRequest = 0 == r.orderList.length, e.stopPullDownRefresh();
                        });
                    }
                },
                onPullDownRefresh: function() {
                    this.page = 1, this.orderList = [], this.getOrderList();
                },
                onReachBottom: function() {
                    this.page++, this.getOrderList();
                }
            };
            t.default = p;
        }).call(this, r("543d").default);
    },
    a9bc: function(e, t, r) {
        r.r(t);
        var n = r("8afb"), i = r.n(n);
        for (var o in n) "default" !== o && function(e) {
            r.d(t, e, function() {
                return n[e];
            });
        }(o);
        t.default = i.a;
    },
    d8ae: function(e, t, r) {
        var n = r("31b2");
        r.n(n).a;
    },
    f679: function(e, t, r) {
        r.d(t, "b", function() {
            return n;
        }), r.d(t, "c", function() {
            return i;
        }), r.d(t, "a", function() {});
        var n = function() {
            this.$createElement;
            this._self._c;
        }, i = [];
    }
}, [ [ "3098", "common/runtime", "common/vendor" ] ] ]);